/*
 * vim: ts=4 sw=4 ai noet tw=78
 * $Coar$
 * %%LICENSE%%
 */
#ifndef LDAPENTER_SEARCH_H
#define LDAPENTER_SEARCH_H 1
#include <ldap.h>

#include "extern.h"

int lde_search_entry(runtime_t *, LDAPMessage **);
#define lde_search_attr_definitions(__ctx, __msg) \
	lde_search_operational(__ctx, "attributeTypes", __msg)

#define lde_search_classes(__ctx, __msg) \
	lde_search_operational(__ctx, "objectclasses", __msg)

int lde_search_operational(runtime_t *, char *, LDAPMessage **);
#endif
